/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   1.and_or.c                                         :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: chen_dl <19967657938@163.com>              +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2025/01/10 14:54:40 by chen_dl           #+#    #+#             */
/*   Updated: 2025/01/10 19:15:21 by chen_dl          ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include <stdio.h>

int main() {
    int a, b;
    scanf("%d%d", &a, &b);
    // (a < b) && printf("YES\n");
    // !(a < b) && printf("NO\n");
    (a % b) && printf("NO\n");
    !(a % b) && printf("YES\n");
    return 0;
}
